﻿using FaceDotnet;
using OpenCvSharp;
using System;

namespace Usage
{
    class Program
    {
        static void Main(string[] args)
        {
            using var img1 = new Mat("1.jpg");
            var face1 = Face.DetectFrom(img1);
            using var feature1 = face1.CreateFeature();

            using var img2 = new Mat("2.jpg");
            var face2 = Face.DetectFrom(img2);
            using var feature2 = face2.CreateFeature();

            var value = feature1.Match(feature2);
            Console.WriteLine(value);

            Console.ReadLine();
        }
    }
}
